home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / bluez-gnome.postinst < prev    next >
Encoding:
Text File  |  2009-04-08  |  1.2 KB  |  41 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4. case "$1" in
  5.     configure)
  6.         # the old conffile got renamed, but contains an executable path that
  7.         # changed as well so it is modified for sure. Moving to
  8.         # $NEWCONFFILE.dpkg-old if it has been modified by the user
  9.         OLDCONFFILE="/etc/xdg/autostart/bt-applet.desktop"
  10.         if [ -e "$OLDCONFFILE" ]; then
  11.             mv -f "$OLDCONFFILE" "/etc/xdg/autostart/bluetooth-applet.desktop.dpkg-old"
  12.         fi
  13.         ;;
  14.     *)
  15.         echo "postinst called with unknown argument \`$1'" >&2
  16.         exit 0
  17.     ;;
  18. esac
  19.  
  20. # Automatically added by dh_installmime
  21. if [ "$1" = "configure" ] && [ -x "`which update-mime-database 2>/dev/null`" ]; then
  22.     update-mime-database /usr/share/mime
  23. fi
  24. # End automatically added section
  25. # Automatically added by dh_gconf
  26. if [ "$1" = "configure" ]; then
  27.     gconf-schemas --register bluetooth-manager.schemas 
  28. fi
  29. # End automatically added section
  30. # Automatically added by dh_desktop
  31. if [ "$1" = "configure" ] && which update-desktop-database >/dev/null 2>&1 ; then
  32.     update-desktop-database -q
  33. fi
  34. # End automatically added section
  35. # Automatically added by dh_icons
  36. if which update-icon-caches >/dev/null 2>&1 ; then
  37.     update-icon-caches /usr/share/icons/hicolor
  38. fi
  39. # End automatically added section
  40.  
  41.